namespace Triad.Controls
{
    using System;
    using System.ComponentModel;
    using System.Data;
    public partial class tfListView
    {

        //public delegate void UpdateHandler(object sender, lvUpdateEventArgs e);

        [PropertyTab("Triad.ControlsTab"),
         Category("Action"),
         DefaultValue(""),
         Description("The event to call upon Server Update.")
        ]
        public event EventHandler<lvUpdateEventArgs> Update;

        protected virtual void OnUpdate(lvUpdateEventArgs e)
        {
            if (Update != null)
            {
                Update(this, e);
            }
        }

        //public delegate void RowBindHandler(object sender, lvRowDataBindEventArgs e);
        [PropertyTab("Triad.ControlsTab"),
         Category("Action"),
         DefaultValue(""),
         Description("The event to call upon DataChange.")
        ]
        public event EventHandler<lvRowDataBindEventArgs> RowBind;
        protected virtual void OnRowDataBind(lvRowDataBindEventArgs e)
        {
            if (RowBind != null)
            {
                RowBind(this, e);
            }
        }

    }
} // End NameSpace
